package com.bandit.registry;

import com.bandit.extension.SPI;

import java.net.InetSocketAddress;

/**
 * 服务注册
 * @author Bandit
 * @create 2022/2/23 16:13
 */
@SPI
public interface ServiceRegistry {

    /**
     * 注册服务
     * @param rpcServiceName
     * @param inetSocketAddress
     */
    void registerService(String rpcServiceName, InetSocketAddress inetSocketAddress);
}
